Woocommerce\Pagarme\Helper\Utils C

Total Complexity 103
Dependencies 4
Dependents 21
Total lines 754
Lines of code 352
Logical lines of code 163
Comment lines 245
Methods 45
Properties 0

Methods 45

Method Rating Maintainability Complexity Lines of code
is_cnpj()
A
53 9 20
build_customer_phones_from_order()
S
50 7 30
is_cpf()
S
55 7 16
build_document_from_order()
S
53 5 24
get_template()
S
60 5 13
get_template_as_string()
S
61 4 12
sanitize()
S
64 4 9
rm_tags()
S
65 4 9
build_customer_shipping_from_wc_order()
S
52 2 23
get_errors()
S
65 3 9
convert_date()
S
69 3 6
request()
S
67 3 7
get_value_by()
S
70 3 6
error_server_json()
S
61 2 13
normalize_price()
S
67 2 8
get_phone_country_code()
S
65 2 9
get_json_post_data()
S
74 2 4
calc_percentage()
S
68 2 7
is_request_ajax()
S
73 2 4
convert_date_for_sql()
S
77 2 3
get_order_by_meta_value()
S
61 1 15
format_order_price_to_view()
S
67 2 8
format_desnormalized_order_price()
S
69 2 7
format_phone_number()
S
67 2 7
format_order_price()
S
70 2 6
format_order_price_with_currency_symbol()
S
70 2 6
build_customer_address_from_order()
S
60 1 12
post()
S
78 1 3
str_to_float()
S
78 1 3
get()
S
78 1 3
cookie()
S
78 1 3
get_site_url()
S
78 1 3
get_permalink()
S
79 1 3
add_prefix()
S
79 1 3
get_component()
S
78 1 3
verify_nonce_post()
S
78 1 3
server()
S
74 1 4
indexof()
S
78 1 3
is_settings_page()
S
78 1 3
format_document()
S
78 1 3
get_admin_url()
S
78 1 3
get_charset()
S
79 1 3
html_decode()
S
78 1 3
log()
S
68 1 6
get_option_key()
S
76 1 4